package com.huawei;

import java.util.Arrays;
import java.util.Scanner;

/**
 * Created by Z-hong on 2024/7/2.
 */

public class HJ3 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int num=sc.nextInt();
        int arr[] = new int[501];
        for(int i = 0;i<num;i++){
            arr[sc.nextInt()]=1;
        }
        int count=0;
        for(int i = 0;i<=500;i++){
            if(arr[i]==1){
                count++;
            }
        }
        int result[] = new int[count];
        int j=0;
        for(int i = 0;i<=500;i++){
            if (arr[i]==1){
                result[j++]=i;
            }
        }
        for (int i : result) {
            System.out.println(i);
        }

    }
}
